cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
project(x3manager)

file(GLOB_RECURSE SRCS *.h *.cpp)
if(WIN32)
    list(APPEND   SRCS x3manager.rc)
endif()

include_directories(
    ../
    ../x3py
    )

if(MSVC)
    add_definitions(-D_USRDLL)
endif()

add_library(x3manager SHARED ${SRCS})

install(TARGETS x3manager DESTINATION lib)
install(DIRECTORY ../x3py DESTINATION include)
